<template>
  <div name="workingCondition" class="s-workingCondition">
    <template v-if="WorkLawList && WorkLawList.length > 0">
      <div class="item" v-for="d in WorkLawList" :key="d.id">
        <p class="ell titleText">
          <i></i>
          {{ d.title }}
        </p>
        <p>{{ d.release_time }}</p>
      </div>
    </template>
    <el-empty v-else></el-empty>
  </div>
</template>
<script>
export default {
  name: "workingCondition",
  components: {},
  data() {
    return {
      WorkLawList: [],
    };
  },
  mounted() {
    this.getData();
  },
  methods: {
    getData() {
      this.$http
        .get("/iaiqsmde9fea569965ed56ab98ea0501752fe631902841e/open/workLaw/queryWorkLaw")
        .then(res => {
          if (res.code == 0) {
            this.WorkLawList = res.data.rows;
						
          }
        })
        .catch(err => {
          console.log(err.message || "数据异常");
        });
    },
  },
};
</script>
